package dao;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.ResultMap;
import pojo.Order;
import pojo.Shopping;

import java.util.List;
public interface OrderMapper {
    @ResultMap("orderResultMap")
    List<Order> selectAll(@Param("userId") String userId);

    @ResultMap("orderResultMap")
    List<Order> selectAllOrder();


    int insertOrder(@Param("id")long id,@Param("userId") long userId,@Param("totalCount") int totalCount,@Param("totalAmout") double totalAmout);

    long validateOrderId(@Param("id") long id);
}